import java.awt.event.*;
import java.awt.*;
import java.io.*;
import java.util.*;
import javax.swing.*;

public class QuizCardBuilder {
    private JTextArea question;
    private JTextArea answer;
//    private ArrayList<QuizCard> cardList;
    private  JFrame frame;

    public static void main(String[] args) {
        QuizCardBuilder builder = new QuizCardBuilder();
    }
    public void go(){
        //创建并显示gui
        frame = new JFrame("Quiz Card Builder");

    }
    private class NextCardListenner implements ActionListener{
        public void actionPerformed(ActionEvent ev){
            //向列表中增加当前卡片并清除文本域

        }
    }
    private class SaveMenuListener implements ActionListener{
        public void actionPerformed(ActionEvent ev){
            //生成对话框，输入用户名并保存设置

        }
    }
    private class NewMenuListener implements ActionListener{
        public void actionPerformed(ActionEvent ev){
            //清除card列表和文本域

        }
    }
    private void saveFile(File file){
        //把列表输出到一个文本文件

    }
}
